from flask import Flask 
from flask_jsonrpc import JSONRPC
from datetime import datetime

app = Flask(__name__)
jsonrpc = JSONRPC(app, '/api', enable_web_browsable_api=True)

@jsonrpc.method('tick')
def index() -> str:
    return "hello world" + str(datetime.now())

app.run(debug=True)
